Determines the distance between two points, p1 and p2. This is the same as the vector expression abs(p1-p2).

The following example returns half the distance between the centers of two selected objects:
dist(cen,cen)/2
The following example finds the distance between the point 3,2,4 and a plane you define by selecting three endpoints:
dpp([3,2,4],end, end, end)